// BUG 需要完善 ，当前仅能挂载在body下 样式等需要调整 https://juejin.cn/post/7377578894591000586?searchId=20241018095344D54065ED73AFE9D7AE3A#heading-7
import "./message.scss";
const MessageBox = defineComponent({
    name: "MessageBox",
    props: {
        title: {
            type: String,
            default: 'Modal'
        }
    },
    setup (props) {
        const handleConfirm = () => {
            console.log("handleConfirm");
        }
        const handleClose = () => {
            console.log("handleClose")
        }
    },
    render () {
        return (
            <div>123</div>
        )
    }
});

export function openMessageBox (options) {
    const app = createApp(MessageBox, options)
    const parentNode = document.createElement('div')
    document.body.appendChild(parentNode)
    app.mount(parentNode)
    console.log();
}
